package com.jt.controller;

import com.jt.service.ItemService;
import com.jt.service.ItemService0;
import com.jt.vo.PageResult;
import com.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item")
@CrossOrigin
public class ItemController0 {

 @Autowired
 private ItemService0 itemService0;

 @GetMapping("/getItemList")
 public SysResult getItemList(PageResult pageResult){

  pageResult=itemService0.findItemByPage(pageResult);
  return SysResult.success(pageResult);
 }
}
